<?php

class bannerGalleryComponents extends myComponents {

  public function executeRender() {
	$this->node = $this->getRoute()->getObject();

	$banners = Doctrine::getTable('Banner')->findStructureBanners($this->node->getId(), 'gallery');
	$this->pictures = $banners[key($banners)];
  }
}